﻿using System;
using Microsoft.EntityFrameworkCore;
using Admin.Menus;
using Admin.RoleMenus;
using Admin.Roles;
using Admin.UserInfos;
using Admin.UserRoles;

namespace Admin.Entity
{
    public class MS_Context : DbContext
    {
        public MS_Context(DbContextOptions<MS_Context> options) : base(options)
        {
        }

        /// <summary>
        /// 管理员表
        /// </summary>
        public DbSet<UserInfo> UserInfos { get; set; }

        /// <summary>
        /// 管理员角色表
        /// </summary>
        public DbSet<UserRole> UserRoles { get; set; }

        /// <summary>
        /// 角色表
        /// </summary>
        public DbSet<Role> Roles { get; set; }

        /// <summary>
        /// 角色菜单表
        /// </summary>
        public DbSet<RoleMenu> RoleMenus { get; set; }

        /// <summary>
        /// 菜单表
        /// </summary>
        public DbSet<Menu> Menus { get; set; }
    }
}
